home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #15
/
Monster Media Number 15 (Monster Media)(July 1996).ISO
/
os2
/
fih113.zip
/
DEINSTAL.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1996-06-07
|
1KB
|
63 lines
/* Icon Heaven de-installation script */
/* (C)Copyright 1993-1996 by The Frobozz Magic Software Company */
Call RxFuncadd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
Call SysLoadFuncs
app = 'IHeaven'
key = 'INSTDIR'
ini = value('USER_INI',,'OS2ENVIRONMENT')
tDrive = left(ini,1)
'@echo off'
Call SysCls
say 'Icon Heaven installation utility version 1.13'
say '(C)Copyright 1993-1996 by the Frobozz Magic Software Company'
say ''
/* check to see if Icon Heaven is installed */
res = SysIni(, app, key)
if res <> 'ERROR:' then do
instdir = res
call deinstall
exit
end
say 'Icon Heaven was not found on your system, de-install aborted'
exit
deinstall:
say 'Icon Heaven is installed in directory ['instdir']'
say 'Do you wish to remove it? [N/y]'
pull reply
if left(reply, 1) = 'Y' then do
call SysDestroyObject "<FIM_ICONS>"
Call SysDeregisterObjectClass 'FIMTransIcon'
Call SysDeregisterObjectClass 'FIMFolder'
'replace 'instdir'\fim.dll'
call SysFileTree instdir'\*', 'file.', 'FO'
'del 'instdir'\*.fim'
'del 'instdir'\fim.ico'
'del 'instdir'\fim.hlp'
'del 'instdir'\iconlib.exe'
'del 'instdir'\iconlib.ico'
'del 'instdir'\readme.1st'
'del 'instdir'\reinst.cmd'
'del 'instdir'\deinstal.cmd'
'del 'instdir'\deinstal.ico'
'del 'instdir'\replace.exe'
'del 'instdir'\fim.dll'
Call SysIni , app, key, 'DELETE:'
Call SysRmDir instdir
say 'Icon Heaven has been deleted from your system.'
end
return